package com.rsstuan.storage.data;



import java.util.Date;

import javax.jdo.annotations.IdentityType;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;

import com.google.appengine.api.datastore.Key;


@PersistenceCapable(identityType = IdentityType.APPLICATION) 
public class ArticleStorageData {
	
    @PrimaryKey 
    @Persistent
	private Key key;
    
    @Persistent
    private Long channelId;
    
    @Persistent
	private int index;
	
    @Persistent
	private String title;

    @Persistent
	private String author;
	
    @Persistent
	private String link;
	
    @Persistent
	private Date pubDate;
	
    @Persistent
	private String description;
    
    @Persistent
    private long storageTime;
    
    @Persistent
    private byte[] digest;

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getAuthor() {
		return author;
	}

	public void setAuthor(String author) {
		this.author = author;
	}

	public String getLink() {
		return link;
	}

	public void setLink(String link) {
		this.link = link;
	}

	public Date getPubDate() {
		return pubDate;
	}

	public void setPubDate(Date pubDate) {
		this.pubDate = pubDate;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public Long getChannelId() {
		return channelId;
	}

	public void setChannelId(Long channelId) {
		this.channelId = channelId;
	}

	public int getIndex() {
		return index;
	}

	public void setIndex(int index) {
		this.index = index;
	}

	public long getStorageTime() {
		return storageTime;
	}

	public void setStorageTime(long storageTime) {
		this.storageTime = storageTime;
	}

	public byte[] getDigest() {
		return digest;
	}

	public void setDigest(byte[] digest) {
		this.digest = digest;
	}

	public void setKey(Key key) {
		this.key = key;
	}

	public Key getKey() {
		return key;
	}
	

	
}

